package edu.sctu.practice.class01.wangxiaoqiang.practice.test_four;

/**
 * Created by admin on 2015/10/15.
 */
public class Number {

    private int n1;
    private int n2;
    public int result;

    public Number(int n1, int n2) {
        this.n1 = n1;
        this.n2 = n2;
    }

    public void addition() {
        result = n1 + n2;
        System.out.println("result =" + result);
    }

    public void subtration() {
        result = n1 - n2;
        System.out.println("result =" + result);
    }

    public void multiplication() {
        result = n1 * n2;
        System.out.println("result =" + result);
    }

    public void division() {
        result = n1 / n2;
        System.out.println("result =" + result);
    }


}
